import http from './http.js'

/**
 *  @description  用户登录
 */
export const loginApi = (params, config = {}) => http.post('/api/login', params, config)


/**
 *  @description  退出登录
 */
export const logoutApi = (params, config = {}) => http.post('/api/logout', params, config)

/**
 *  @description  搜索用户
 */
export const searchUserApi = (params, config = {}) => http.post('/api/searchUser', params, config)


/**
 *  @description  获取地址信息
 */
export const regionListApi = (params, config = {}) => http.post('/api/regionList', params, config)

/**
 *  @description  添加用户
 */
export const addUserApi = (params, config = {}) => http.post('/api/addUser', params, config)

/**
 *  @description  创建订单
 */
export const createOrderApi = (params, config = {}) => http.post('/api/createOrder', params, config)


/**
 *  @description  订单详情
 */
export const orderDetailApi = (data) => http.get('/api/orderDetail', data)


/**
 *  @description  更新订单
 */
export const updateOrderApi = (params, config = {}) => http.post('/api/updateOrder', params, config)


 


